github.com/gotd/log.Value.num (field)
21 uses
github.com/gotd/log (current package)
attr.go#L40: num uint64
attr.go#L49: func (v Value) Int64() int64 { return int64(v.num) }
attr.go#L52: func (v Value) Uint64() uint64 { return v.num }
attr.go#L55: func (v Value) Float64() float64 { return math.Float64frombits(v.num) }
attr.go#L58: func (v Value) Bool() bool { return v.num != 0 }
attr.go#L61: func (v Value) Duration() time.Duration { return time.Duration(int64(v.num)) }
attr.go#L87: return int64(v.num)
attr.go#L89: return v.num
attr.go#L91: return math.Float64frombits(v.num)
attr.go#L93: return v.num != 0
attr.go#L95: return time.Duration(int64(v.num))
attr.go#L114: return strconv.FormatInt(int64(v.num), 10)
attr.go#L116: return strconv.FormatUint(v.num, 10)
attr.go#L118: return strconv.FormatFloat(math.Float64frombits(v.num), 'g', -1, 64)
attr.go#L120: return strconv.FormatBool(v.num != 0)
attr.go#L122: return time.Duration(int64(v.num)).String()
attr.go#L149: return Attr{Key: key, Value: Value{kind: KindInt64, num: uint64(value)}}
attr.go#L154: return Attr{Key: key, Value: Value{kind: KindUint64, num: value}}
attr.go#L159: return Attr{Key: key, Value: Value{kind: KindFloat64, num: math.Float64bits(value)}}
attr.go#L168: return Attr{Key: key, Value: Value{kind: KindBool, num: n}}
attr.go#L173: return Attr{Key: key, Value: Value{kind: KindDuration, num: uint64(value)}}
 |
The pages are generated with Golds v0.8.4. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |